package com.ctg.payroll2.util;

public final class Constants {
	public final static String RELOGIN = "relogin";
	public final static String PRODUCT_NAME = "productName";
	public final static String SECURITY_ACCOUNT_DISABLED = "1";
	/**
	 * 如果该用户处于冻结状态(is_vaild = 90)，则返回
	 */
	public final static String ACCOUNT_DISABLED = "90";
	/**
	 * 当is_vaild为10时，提醒但不强制用户进入修改密码页面
	 */
	public final static String ACCOUNT_WARNING = "10";
	/**
	 * 当is_vaild为20时，提醒且强制用户进入修改密码页面
	 */
	public final static String ACCOUNT_CHANGEPASSWORD = "20";
	
	public final static int DEFAULT_PAGE_SIZE = 10;
	public final static int EXPORT_MAX_ROW = 65536;

	// 硬编码规定的账户状态
	public final static String[] DEFAULT_STATE = { "1", // 启用
			"0" // 冻结
	};
	/**
	 * 菜单顶节点的id
	 */
	public final static String MENU_ROOT_ID = "20D5E0148C34BAF87D3E4E11CA5688CE";

	// 硬编码规定的数据来源
	public final static Integer[] DEFAULT_DATASOURCE = { 0, // 系统
			1 // 客户
	};

	// 硬编码规定的角色标识
	public final static String[] DEFAULT_ROLE = {
			"4028926f234c592301234c5923120000", // 系统管理员
			"4028926f234c592301234c5923120001", // 客户系统管理员
			"4028926c24001f880124001f88b60000"  // 客户HR人员
	};

	public final static int THREETIME_ERROR_CODE = 1000;
	public final static String THREETIME_ERROR_MSG = "密码连续三次输入错误,账户锁定20分钟!";
	public final static int USERNAME_OR_PASSWORD_ERROR_CODE = 999;
	public final static String USERNAME_OR_PASSWORD_ERROR_MSG = "用户名或者密码错!";
	public final static int LOGIN_SUCCESS_CODE = 998;
	/**
	 * 用户名密码最多错误次数
	 */
	public final static int USERNAME_OR_PASSWORD_ERROR_LIMIT = 3;
	/**
	 * 在session中的attribute中取得当前登录用户的name
	 */
	public final static String CURRENT_USER = "currentUser";
 

	public static final String IMPKEY = "COL_NUM";
	// xls导入VALUE
	public static final String IMPVALUE = "EX_SUB_CODE";
	public static final String GOOD_LIST = "GOOD_LIST";
	public static final String BAD_LIST = "BAD_LIST";
 
	
	public final static String LIMIT = "limit";
	public final static String START = "start";
	
	public final static String ENDINDEX = "endIndex";
	public final static String STARTINDEX = "startIndex";
 
	public final static String VALID_F = "0";
	public final static String VALID_T = "1";
	/**
	 * 默认的计薪天数:21.75
	 */
	public final static String PAY_DAY_RULE = "21.75";
}
